#!/bin/bash

echo "############################"
echo "# COMPILING EXTRA PACKAGES #"
echo "############################"

export CTORRENT=ctorrent-dnh3.3.2
#export WGET=wget-1.9.1 # compatible with older gcc, but will not allow for static compile
export WGET=wget-1.11.4
export ZLIB=zlib-1.2.3
export MINI_HTTPD=mini_httpd-1.19
export AMULE=amule-2.2.4
export ICONV=libiconv-1.12
export GETTEXT=gettext-0.16.1
export GLIB=glib-2.18.0


cd ${0%/*}
export DIR=$(pwd)/working
mkdir -p $DIR

./wget.sh
./ctorrent.sh
./mini_httpd.sh
./amule.sh

mkdir -p bin

cp working/$WGET/src/wget bin
cp working/$CTORRENT/ctorrent bin
cp working/$MINI_HTTPD/mini_httpd bin
cp working/$MINI_HTTPD/htpasswd bin

echo "...Done EXTRA PACKAGES"
